home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / win / ch13 / 13fig12.wrl < prev    next >
Text File  |  1996-09-23  |  727b  |  40 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Shape {
  6.     appearance Appearance {
  7.         material Material { }
  8.     }
  9.     geometry IndexedFaceSet {
  10.         coord Coordinate {
  11.             point [
  12.             # Coordinates around the top of the cube
  13.                 -1.0  1.0  1.0,
  14.                  1.0  1.0  1.0,
  15.                  1.0  1.0 -1.0,
  16.                 -1.0  1.0 -1.0,
  17.             # Coordinates around the bottom of the cube
  18.                 -1.0 -1.0  1.0,
  19.                  1.0 -1.0  1.0,
  20.                  1.0 -1.0 -1.0,
  21.                 -1.0 -1.0 -1.0
  22.             ]
  23.         }
  24.         coordIndex [
  25.         # top
  26.             0, 1, 2, 3, -1,
  27.         # bottom
  28.             7, 6, 5, 4, -1,
  29.         # front
  30.             0, 4, 5, 1, -1,
  31.         # right
  32.             1, 5, 6, 2, -1,
  33.         # back
  34.             2, 6, 7, 3, -1,
  35.         # left
  36.             3, 7, 4, 0
  37.         ]
  38.     }
  39. }
  40.